// import { defineStore } from "pinia";
// import { ref, computed, reactive } from 'vue'

// export const useRouteConfigStore = defineStore('routeConfig', () => {
    
//     const views:string[] = reactive([])
//     // 添加路由
//     const addView = (viewName) => {
//         if (views.includes(viewName)) return
//         views.push(viewName)
//         console.log('views :>> ', views);
//     }
//     // 移除路由
//     const removeView = (viewName) => {
//         const index = views.indexOf(viewName);
//         if (index > -1) {
//             views.splice(index, 1);
//           }
//     }
//     // 匹配路由
//     const getIncludedViewsRegex = () => {
//         return new RegExp(views.join('|'));
//     }
    
//     return {views, addView, removeView ,getIncludedViewsRegex}
    
//  })